package com.yjs.ppjokedemo.viewmodel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.yjs.ppjokedemo.bean.VideoProduct;
import com.yjs.ppjokedemo.repo.VideoRepo;

import java.util.List;

public class VideoViewModel extends ViewModel {
    VideoRepo videoRepo = new VideoRepo();

//    MutableLiveData<VideoProduct> product = new MutableLiveData<>();

    //获取视频数据列表
    public LiveData<List<VideoProduct>> getProducts(){
        return videoRepo.getProducts();
    }

//    public LiveData<VideoProduct> getProduct(){
//        return product;
//    }
//
//    public void setProduct(VideoProduct videoProduct){
//        this.product.setValue(videoProduct);
//    }


}
